package cn.crm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.crm.Service.IOrderService;
import cn.crm.common.ServerResponse;
import cn.crm.entity.Order;

@Controller
@RequestMapping(value="order")
public class OrderController {

	@Autowired
	private IOrderService orderservice;
	
	@RequestMapping(value="pageList")
	@ResponseBody
	public ServerResponse pageList(Integer page,Integer limit,Order order){
		return orderservice.pageList(page,limit,order);
	}
	
	@RequestMapping(value="toorderpage")
	public String topage(){
		return "order/order_list";
	}
	
}
